package com.wk.springboot.spring.bean;

import lombok.Data;

/**
 * @User admin
 * @Date 2020/11/20 11:24
 **/
@Data
public class Person {

    /**
     * name
     **/
     private String name;

     /**
      * age
      **/
      private int age;

    public Person() {
        System.out.println("创建了person");
    }

    public void initMethod(){
        System.out.println("开始执行初始化方法");
    }

    public void destroyMethod(){
        System.out.println("执行了销毁方法");
    }
}
